package com.yueqian.framework.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class PageEntity extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	private Integer currentPage = 1;

	private Integer pageSize = 10;

	public <T> IPage<T> getPage(Integer currentPage, Integer pageSize) {
		return new Page<>(currentPage, pageSize);
	}


}
